import request from '@/utils/request'

// 查询档案室环境预警信息列表
export function listArchiveRoomAlarm(query) {
  return request({
    url: '/archive/ArchiveRoomAlarm/list',
    method: 'get',
    params: query
  })
}

// 查询档案室环境预警信息详细
export function getArchiveRoomAlarm(id) {
  return request({
    url: '/archive/ArchiveRoomAlarm/' + id,
    method: 'get'
  })
}

// 新增档案室环境预警信息
export function addArchiveRoomAlarm(data) {
  return request({
    url: '/archive/ArchiveRoomAlarm',
    method: 'post',
    data: data
  })
}

// 修改档案室环境预警信息
export function updateArchiveRoomAlarm(data) {
  return request({
    url: '/archive/ArchiveRoomAlarm',
    method: 'put',
    data: data
  })
}

// 删除档案室环境预警信息
export function delArchiveRoomAlarm(id) {
  return request({
    url: '/archive/ArchiveRoomAlarm/' + id,
    method: 'delete'
  })
}
